class UrlMappings {
    static mappings = {

       "/$locator"{
           controller='recipe'
           action = 'show'
       }

       "/recipe/$action?/$locator?"{
           controller='recipe'
	      constraints {
			 // apply constraints here
		  }
	  }

      "/$controller/$action?/$id?"{
	      constraints {
			 // apply constraints here
		  }
	  }
      "/"(view:"/index")
	  "500"(view:'/error')
	}
}
